package com.example.warehouse.bus.service;
import com.example.warehouse.bus.pojo.param.BusRepertoryAddGoodsNum;
import com.example.warehouse.bus.pojo.param.BusRepertoryReduceGoodsNumParam;
import com.example.warehouse.bus.pojo.vo.BusRepertoryInfoVo;
import com.example.warehouse.common.pojo.vo.PageData;
import org.springframework.transaction.annotation.Transactional;
public interface IBusRepertoryService {
    //进货存储
    @Transactional
    void addGoodsNum(BusRepertoryAddGoodsNum busRepertoryAddGoodsNum);
    //出货销存
    void reduceGoodsNum(BusRepertoryReduceGoodsNumParam BusRepertoryReduceGoodsNumParam);
    //通过id删除该条数据
    void deleteByIdGoods(Long id);
    //分页查询数据的重载
    PageData<BusRepertoryInfoVo> pageHelperByPageNumAndPageSize(Integer pageNum, Integer pageSize);
    PageData<BusRepertoryInfoVo> pageHelperByPageNum(Integer pageNum);
    //模糊查询后的分页查询
    PageData<BusRepertoryInfoVo> pageHelperByPageNumAndGoodsNameFuzzyQuery(Integer pageNum,String keyword);
}
